%%%----------------------------------------------------------------------
%%% File    : mgee_virtual_world_sup.erl
%%% Author  : Qingliang
%%% Created : 2010-01-04
%%% Description: Ming game engine erlang
%%%----------------------------------------------------------------------

-module(mgee_virtual_world_sup).

-behaviour(supervisor).
%% --------------------------------------------------------------------
%% Include files
%% --------------------------------------------------------------------
-include("mgee.hrl").

%% --------------------------------------------------------------------
%% External exports
%% --------------------------------------------------------------------
-export([]).

%% --------------------------------------------------------------------
%% Internal exports
%% --------------------------------------------------------------------
-export([
		 start_link/0,
		 init/1
        ]).

%% --------------------------------------------------------------------
%% Macros
%% --------------------------------------------------------------------
-define(SERVER, ?MODULE).

%% --------------------------------------------------------------------
%% Records
%% --------------------------------------------------------------------

%% ====================================================================
%% External functions
%% ====================================================================

start_link() ->
	supervisor:start_link({local, ?SERVER}, ?MODULE, []).

%% ====================================================================
%% Server functions
%% ====================================================================
%% --------------------------------------------------------------------
%% Func: init/1
%% Returns: {ok,  {SupFlags,  [ChildSpec]}} |
%%          ignore                          |
%%          {error, Reason}
%% --------------------------------------------------------------------
init([]) ->
	?INFO_MSG("~p init: ~p",[?MODULE, [] ]),
    {ok,{{simple_one_for_one,10,10}, 
		 [{mgee_virtual_world, 
		   {mgee_virtual_world, start_link, []}, 
		   transient, brutal_kill, worker, [mgee_virtual_world]}
		  ]}}.

%% ====================================================================
%% Internal functions
%% ====================================================================

